/*
 * @Author: xuhua
 * @Date: 2023-09-15 16:21:29
 * @LastEditors: xuhua
 * @LastEditTime: 2023-09-19 10:47:46
 * @FilePath: /v3-element-admin/src/api/user/index.ts
 * @Description:
 */
import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { UserInfo } from "./types";

export enum Api {
	GETSUERINFO = "/user/info",
}
// 获取用户信息
export const getUserInfo = (): AxiosPromise<UserInfo> => request.get(Api.GETSUERINFO);
